﻿using Application.Dto;
using Domain.Entitys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.IAppSrevices
{
    public interface ICFSKService
    {
        /// <summary>
        /// 分页查询二级结构表数据
        /// </summary>
        /// <param name="fenYe"></param>
        /// <returns></returns>
        FenYe<CFSK> CFSKSelectFenYe(FenYe<CFSK> fenYe);

        /// <summary>
        /// 添加二级结构表数据
        /// </summary>
        /// <param name="cFSK"></param>
        /// <returns></returns>
        Task<int> CFSKInsertAsync(CFSKAddDto cFSKAddDto);

        /// <summary>
        /// 根据id查询对应数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<CFSK> CFSKSelectById(int id);

        /// <summary>
        /// 修改2级结构表数据
        /// </summary>
        /// <param name="cFSK"></param>
        /// <returns></returns>
        Task<int> CFSKUpdateAsync(CFSK cFSK);

        /// <summary>
        /// 删除2级结构表数据
        /// </summary>
        /// <param name="cFSK"></param>
        /// <returns></returns>
        Task<int> CFSKDeleteAsync(CFSKDeleteDto cFSKDeleteDto);

        /// <summary>
        /// 查询2级结构表全部数据并作为下拉框
        /// </summary>
        /// <returns></returns>
        Task<List<CFSK>> CFSKSelectOption();

        /// <summary>
        /// 根据2级编号查询对应数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<CFSK> CFSKSelectByCfkid(string id);

        /// <summary>
        /// 根据1级结构编号查询数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
       Task<List<CFSK>> CFSKSelectid(string id);
    }
}
